<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %>
<html> 
<jsp:include page="../head.jsp"></jsp:include>
<body>
<br/><br/><br/>
<a href='TbContactServlet?method=showadd&parDepartId=${sessionScope.parDepartId }'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr>

    <td>联系人</td>
    <td>所属公司</td>
    <td>所属部门</td>
    <td>性别</td>
    <td>手机号码</td>
    <td>联系人邮箱</td>
    <td>出生日期</td>
    <td>联系人住址</td>
    <td>创建时间</td>
    <td>修改</td>
    <td>删除</td>
</tr>
<c:forEach items="${sessionScope.tbContactList==null?'':sessionScope.tbContactList}" var="tbContact" varStatus="status">
<tr>
    <td>${tbContact.contactName}</td>
    <td>${tbContact.tbCompany.companyName}</td>
    <td>${tbContact.departId==0?'无':tbContact.tbDepart.departName}</td>
    <td>${tbContact.contactSex==0?'男':'女'}</td>
    <td>${tbContact.contactPhone}</td>
    <td>${tbContact.contactEmail}</td>
    <td>${tbContact.contactBirthday}</td>
    <td>${tbContact.contactAddress}</td>
    <td>${tbContact.createTime}</td>
    <td><a href='TbContactServlet?method=listById&contactId=${tbContact.contactId }'>修改</a></td>
    <td><a href='TbContactServlet?method=del&delIds=${tbContact.contactId}'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body></html>